home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-11-27 | 1.1 KB | 38 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH"="Appearance\System\Open/Save Dialog"
- "NAME"="Start in My Documents"
- "VERSION"="1.02"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Open/Save starts in My Documents"
- "DESCRIPTION 1"="When you open or save a file, some programs start in My Documents, instead of C:\. With this program you can disable this behavior."
- "DESCRIPTION 2"="Bear in mind that the majority of programs ignore this setting."
- "COMMENT 1"="Thanks to Axcel216 [axcel216@aol.com] and TeXHeX [TeXHeX@xteq.com] for the idea!"
- "AUTHOR"="Xteq Systems (Neil R. Turner)"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "CONTACTURL"="http://www.xteq.com/"
-
- sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Documents\DisableStartInMyDocs"
-
- SUB Plugin_Initialize
- s=RegReadValue(sP)
- if s=0 OR IsEmpty(s) then
- Call SetUIElement(1,true)
- end if
-
- ' I think there should be a SetUIElephant :)
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if s=true then
- Call RegWriteValue(sP,0,2)
- else
- Call RegWriteValue(sP,1,2)
- end if
- END SUB
-
- SUB Plugin_Terminate
- END SUB
-